#@layout()
<script>
    $("#feedback-add").validate({
        rules:{
                "feedback.contact":{
                    required:true
                },
                "feedback.user":{
                    required:true
                },
                "feedback.status":{
                    required:true
                },
                "feedback.content":{
                    required:true
                }
        },
        messages:{

                "feedback.contact":{
                required:"请输入联系方式..."
                },
                "feedback.user":{
                required:"请输入提交内容..."
                },
                "feedback.status":{
                required:"请输入状态..."
                },
                "feedback.content":{
                required:"请输入内容..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/feedback/doAdd",
        data:$("#feedback-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="feedback-add">
        #include("feedback-form.html")
     </form>
#end